package cn.com.headfree.base.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * Title: Description: 接口日志信息的实体类格式的定义 Copyright: Copyright (c) 2017 Company:
 * www.headfree.com.cn
 * 
 * @author fengya
 * @version 1.0
 * @date 2019年8月8日 上午8:27:35
 */
public class LogInfo {
	/**
	 * 日志id
	 */
	private String id;
	/**
	 * 记录接口的发送日志以及接收日志,send/receive
	 */
	private String logType;
	/**
	 * 调用时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date time;
	/**
	 * 被调用端Ip地址
	 */
	private String dip;
	/**
	 * 被调用端接口服务
	 */
	private String dip_service;
	/**
	 * 日志等级
	 */
	private String level;
	/**
	 * 日志内容，记录传入内容和返回内容
	 */
	private String logMessage;
	/**
	 * 调用端IP地址
	 */
	private String sip;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLogType() {
		return logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getDip() {
		return dip;
	}

	public void setDip(String dip) {
		this.dip = dip;
	}

	public String getDip_service() {
		return dip_service;
	}

	public void setDip_service(String dip_service) {
		this.dip_service = dip_service;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getLogMessage() {
		return logMessage;
	}

	public void setLogMessage(String logMessage) {
		this.logMessage = logMessage;
	}

	public String getSip() {
		return sip;
	}

	public void setSip(String sip) {
		this.sip = sip;
	}

}
